<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script type="module">
    // 串联
	import Promise from "./index.js";
	new Promise(function (resolve, reject) {
		setTimeout(()=>{
			reject(200)
		})
	}).then(value=>{
		console.log("成功回调1",value);
	},reason=>{
		console.log("失败回调1",reason);
	}).then(value=>{
		console.log("成功回调2",value);// undefined
	},reason=>{
		console.log("失败回调2",reason);
	}).then(value=>{
		console.log("成功回调3",value);// undefined
	},reason=>{
		console.log("失败回调3",reason);
	});




</script>
</html>